package com.hlt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzf
 * @since 2024-11-25
 */
@TableName("follows")
public class Follows implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关注ID，主键
     */
    @TableId(value = "follow_id", type = IdType.AUTO)
    private Integer followId;

    /**
     * 关注者用户ID
     */
    private Integer followerId;

    /**
     * 被关注者用户ID
     */
    private Integer followingId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    public Integer getFollowId() {
        return followId;
    }

    public void setFollowId(Integer followId) {
        this.followId = followId;
    }
    public Integer getFollowerId() {
        return followerId;
    }

    public void setFollowerId(Integer followerId) {
        this.followerId = followerId;
    }
    public Integer getFollowingId() {
        return followingId;
    }

    public void setFollowingId(Integer followingId) {
        this.followingId = followingId;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "Follows{" +
            "followId=" + followId +
            ", followerId=" + followerId +
            ", followingId=" + followingId +
            ", createdAt=" + createdAt +
        "}";
    }
}
